<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
    <h1>th:if使用</h1>
    <p th:if="true">判断boolean, true</p>
    <p th:if="'true'">判断'true'字符串</p>
    <p th:if="'ok'">判断'ok'字符串</p>
    <p th:if="99">判断数字99</p>
    <p th:if="5 > 0">判断5>0</p>
	<p th:if="${old}">判断后端的boolean，true</p>
	<p th:if="${login}">判断后端的非空字符串</p>
	<p th:if="${str0}">''空字符串结果也是true</p>
	<p th:if="${num1}">负数为true</p>
	<p th:if="${num2}">正数为true</p>
	<p th:if="${obj1}">非null的对象也是true</p>

	<h1>th:unless使用</h1>
	<p th:unless="${young}">young 为 boolean-false</p>
	<p th:unless="${str1}">字符串"off"为false</p>
	<p th:unless="${str2}">字符串"no"为false</p>
	<p th:unless="${str3}">字符串"false"为false</p>
	<p th:unless="${num3}">数字0为false</p>
	<p th:unless="${obj2}">空对象null为false</p>
</body>
</html>